from typing import Optional

from pydantic import BaseModel, Field


class Question(BaseModel):
    tigan: str = Field(..., description='题干')
    answer: str = Field(..., description='')
    jiexi: Optional[str] = None
    nianji: int = Field(..., description='')
    kemu: str = Field(..., description='')
    leixing: str = Field(..., description='')
    laiyuan: str = Field('AI', description='')
    nandu: str = Field(..., description='')
    pingjia: Optional[str] = None
    youhua: Optional[str] = None
    # papers: Optional[int] = None

